<%--
  Created by IntelliJ IDEA.
  User: lucongyue
  Date: 2017/12/5
  Time: 14:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<h1>js工具下载</h1>
<div class="" id="conHeight">
    <div class="tab-content newContent">
        <br>
        <ul>
            <li><a onclick="gotoDownload('communication-0.0.2.js')" href="#" style="font-size: 20px;">communication-0.0.2.js</a>
                &nbsp;&nbsp;&nbsp;
                <a onclick="gotoDownload('communication-0.0.2.min.js')" href="#" style="font-size: 20px;">communication-0.0.2.min.js</a><br>
                <p>增加文件消息类型</p>
                <p>初始化时init方法参数options需要传入wsurl,url,token,onmessage</p>
                <p>新增方法sendFile传输文件消息</p>
            </li>
            <li><a onclick="gotoDownload('communication.js')" href="#" style="font-size: 20px;">communication.js</a>
                &nbsp;&nbsp;&nbsp;
                <a onclick="gotoDownload('communication.min.js')" href="#"
                   style="font-size: 20px;">communication.min.js</a>
                <br>
                <p>第一版本,实现了基本的websocket功能</p>
            </li>
        </ul>

    </div>
</div>

<script type="text/javascript">
    function gotoDownload(fileName) {
        fileName = encodeURI(fileName);
        var url = getRootPath() + "/static/download/" + fileName;
        window.location.href = "index/download?fileName=" + fileName + "&url=" + url;
    }
</script>